.completion-dropdown-portal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 9999;
}

.completion-dropdown {
  position: fixed;
  background-color: rgba(30, 30, 30, 0.95);
  border: 1px solid #444;
  border-radius: 4px;
  padding: 4px 0;
  min-width: 200px;
  max-width: 400px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
  pointer-events: auto;
  animation: fadeIn 0.15s ease-out;
  z-index: 9999;
}

/* 确保下拉框在所有其他元素之上 */
body {
  position: relative;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.completion-item {
  padding: 4px 8px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
}

.completion-item:hover,
.completion-item.selected {
  background-color: rgba(60, 60, 60, 0.95);
}

.completion-item .command {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 8px;
}

.completion-item .source {
  font-size: 0.9em;
  opacity: 0.7;
  padding: 2px 4px;
  background: rgba(80, 80, 80, 0.5);
  border-radius: 3px;
} 